from rest_framework import serializers
from .models import *


class AllStudentSerializer(serializers.ModelSerializer):
    class Meta:
        model = Student
        fields = ('id', 'name', 'student_number', 'phone', 'sex' , 'room_id', 'build_id')
        depth = 1